$(function () {
  $("header h4").text("品牌导航");
  $("div.more").html("");
  $.ajax({
    url: "http://chst.vip:1234/api/getsitenav",
    success: (res) => {
      let htm = "";
      $.each(res.result, (i, item) => {
        htm += `
            <a
            href="${item.navHref}"
          >
            <img src="${item.navImg}" alt="" />
            ${item.navTitle}
          </a>
            `;
      });
      $("main").html(htm);
    },
  });
});
